<?php

/**
 * BbMatchday form.
 *
 * @package    vogue
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class BbMatchdayForm extends BaseBbMatchdayForm
{
  public function configure()
  {
  	   	# WIDGETS
      $this->widgetSchema['m_name']       = new sfWidgetFormInputText(array(), array('style'=>'width:400px;'));            
      $this->widgetSchema['m_descr']       = new sfWidgetFormTextarea(array(), array('style'=>'width:400px;height:100px;'));
      $this->widgetSchema['is_playoff']       = new sfWidgetFormInputCheckbox(array(), array('value'=>1));
      $choices = Doctrine::getTable('BbSeason')->fetcharray();
      $this->widgetSchema['s_id']   = new sfWidgetFormChoice(array('choices'=>$choices), array('style'=>'width:400px;height:24px;', 'onchange'=>'loadObjects();'));
	
	 // LABELS      
      $this->widgetSchema->setLabel('m_name', 'Нэр');
      $this->widgetSchema->setLabel('m_descr', 'Тухай');      
      $this->widgetSchema->setLabel('s_id', 'Улирал');      
      $this->widgetSchema->setLabel('is_playoff', 'Плэй офф эсэх');    
  }
}
